home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 530 < prev    next >
Internet Message Format  |  1996-08-06  |  1KB

  1. Path: sdrc.com!thor!scjones
  2. From: larry.jones@sdrc.com (Larry Jones)
  3. Newsgroups: comp.std.c
  4. Subject: Re: Bit-field sizes
  5. Date: 8 Mar 1996 15:40:15 GMT
  6. Organization: SDRC Engineering Services
  7. Distribution: world
  8. Message-ID: <4hpkcv$gjc@info1.sdrc.com>
  9. References: <nzRPxQ9ytZZA084yn@csn.net> <4hkgds$bbh@info1.sdrc.com> <4ho846$g2d@usenet.pa.dec.com>
  10. NNTP-Posting-Host: thor.sdrc.com
  11. Originator: scjones@thor
  12.  
  13. In article <4ho846$g2d@usenet.pa.dec.com>, diamond@tbj.dec.com (Norman Diamond) writes:
  14. > In article <4hn3mg$c9v@info1.sdrc.com>, larry.jones@sdrc.com (Larry Jones) writes:
  15. > >Such implementations presumably extend the integral promotion rules in
  16. > >the obvious fashion as well in order to eliminate the need for casts.
  17. > They cannot.  As Thad Smith's original posting pointed out, the standard
  18. > prohibits this extension.
  19.  
  20. Sure they can -- once you've declared a bit-field with a non-conforming
  21. type you've invoked undefined behavior and the compiler is at liberty to
  22. do anything it likes from then on.
  23. ----
  24. Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH  45150-2789  513-576-2070
  25. larry.jones@sdrc.com
  26. I wonder what's on TV now. -- Calvin
  27.